package com.skivingcloud.report.datas.service;

import java.util.List;

import com.fasterxml.jackson.databind.JsonNode;
import com.skivingcloud.report.datas.entity.ReportDatasetTransform;

public interface TransformStrategy {
    /**
     * 数据清洗转换 类型
     * @return
     */
    String type();

    /***
     * 清洗转换算法接口
     * @param def
     * @param data
     * @return
     * @throws Exception
     */
    List<JsonNode> transform(ReportDatasetTransform def, List<JsonNode> data) throws Exception;
}